|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectcom.epiphan.vga2usb.Enum
com.epiphan.vga2usb.Enum.Int
com.epiphan.vga2usb.PixelFormat
Typesafe enumeration of the pixel formats supported by Epiphan frame grabbers.
Field Summary | |
static PixelFormat |
BGR16
16 bits per pixel RGB format. |
static PixelFormat |
BGR24
24 bits per pixel RGB format. |
static PixelFormat |
RGB16
16 bits per pixel RGB format. |
static PixelFormat |
RGB24
24 bits per pixel RGB format. |
static PixelFormat |
RGB4
4 bits per pixel (2 pixels per byte) indexed RGB format. |
static PixelFormat |
RGB8
8 bits per pixel indexed RGB format. |
static PixelFormat |
UYVY
16 bits per pixel packed YUV format. |
static PixelFormat |
YUYV
16 bits per pixel packed YUV format. |
Method Summary | |
int |
compareTo(int key)
Compares id of this object with the specified key for order. |
int |
compareTo(Object obj)
Compares this object with the specified object for order. |
int |
getBpp()
Get number of bits per pixel for this pixel format. |
String |
getDescription()
Returns the description of this object. |
int |
getValue()
Gets the integer value associated with this object. |
int |
hashCode()
Returns the hashcode for this object. |
protected static int |
search(java.util.List list,
int key)
Searches the list for the specified enum object using the binary search algorithm. |
String |
toString()
Returns a string representation of this object. |
Methods inherited from class Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final PixelFormat BGR16
RGB16
with red and blue component swapped.
RGB16
public static final PixelFormat BGR24
RGB24
with red and blue component swapped.
RGB24
public static final PixelFormat RGB16
BGR16
with red and blue component swapped.
BGR16
public static final PixelFormat RGB24
BGR24
with red and blue component swapped.
BGR24
public static final PixelFormat RGB4
RGB4_PAL_INDEX(r,g,b) = ( (((b) >> 4) & 8) | (((g) >> 5) & 6) | (((r) >> 7) & 1))
public static final PixelFormat RGB8
RGB8_PAL_INDEX(r,g,b) = ( (((b) >> 5) & 0x07) | (((g) >> 2) & 0x38) | ((r) & 0xc0))
public static final PixelFormat UYVY
The luminance components have a range of [16, 235], while the chroma value has a range of [16, 240]. This format is also known as+-----------------------------------------------+ | Pixels 0-1 | +-----------------------------------------------+ | Increasing Address Order --> | +-----------+-----------+-----------+-----------+ | Byte 0 | Byte 1 | Byte 2 | Byte 3 | +-----------+-----------+-----------+-----------+ | 8-bit U | 8-bit Y'0 | 8-bit V | 8-bit Y'1 | +-----------+-----------+-----------+-----------+
2VUY
.
public static final PixelFormat YUYV
The luminance components have a range of [16, 235], while the chroma value has a range of [16, 240]. This format is also known as+-----------------------------------------------+ | Pixels 0-1 | +-----------------------------------------------+ | Increasing Address Order --> | +-----------+-----------+-----------+-----------+ | Byte 0 | Byte 1 | Byte 2 | Byte 3 | +-----------+-----------+-----------+-----------+ | 8-bit Y'0 | 8-bit U | 8-bit Y'1 | 8-bit V | +-----------+-----------+-----------+-----------+
YUY2
.
Method Detail |
public int getBpp()
public int compareTo(int key)
key
- the key to be compared.
ClassCastException
- if the specified object's type prevents it
from being compared to this Object.Comparable
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- the Object to be compared.
ClassCastException
- if the specified object's type prevents it
from being compared to this Object.Comparable
public final int getValue()
public final int hashCode()
protected static int search(java.util.List list, int key)
list
- the list to searchkey
- the key to search for
public final String getDescription()
public final String toString()
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |